package com.vilinno.tlias.mapper;

import com.vilinno.tlias.pojo.Clazz;
import com.vilinno.tlias.pojo.ClazzQueryParam;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface ClazzMapper {

    void insert(Clazz clazz);

    List<Clazz> findAll();

    List<Clazz> list(ClazzQueryParam clazzQueryParam);

    Clazz getById(Integer id);

    void update(Clazz clazz);

    void deleteById(int id);

    @MapKey("clazz")
    List<Map<String, Object>> countStudentCountData();
}
